import { Rate } from 'antd'
import React, { Component } from 'react'

export default class Page3 extends Component {
    constructor(props) {
        super(props)
        this.state = {
            count: 0,
            value: 3
        }
    }

    handleChange(value) {
        this.setState({ value: value })
    }

    render() {
        const { value } = this.state
        return (
            <span>
                <Rate onChange={e => this.handleChange(e)} value={value} />
                {value && <span className='ant-rate-text'>{value} 星</span>}
            </span>
        )
    }
}
